<template>
	<view class="top_nav_return">
		<view class="top_nav_title">
			<view class="imgbox">
				<image src="../../../static/icon/arrow_l_white.png" mode=""></image>
				<view class="returnbox" @click="backPage()"></view>
			</view>
			<view class="">
				{{topNavTitle}}
			</view>
			<view class="">
				<!-- 占位，不要删除 -->
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		//	topNavTitle	导航标题
		props: ['topNavTitle'],
		methods: {
			backPage() {
				uni.navigateBack()
				// uni.reLaunch({
				// 	url: '/pages/index/index'
				// })
			}
		}
	}
</script>

<style scoped lang="scss">
	.returnbox {
		position: absolute;
		top: -15rpx;
		left: -15rpx;
		height: 60rpx;
		width: 70rpx;
	}
	.top_nav_return {
		position: fixed;
		z-index: 10;
		top: 0;
		left: 0;
		width: 100vw;
		padding-top: 90rpx;
		padding-bottom: 30rpx;
		background-color: #0191A0;
		color: #fff;
	}

	.top_nav_title {
		position: relative;
		text-align: center;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: bold;
		padding: 0 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.imgbox {
		position: relative;
		display: flex;
		align-items: center;
		image {
			height: 36rpx;
			width: 19rpx;
		}
	}
</style>
